<!DOCTYPE HTML>

<html lang="en">
<head>

<title>OAuth2ResourceServerConfigurer (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="OAuth2ResourceServerConfigurer (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="OAuth2ResourceServerConfigurer.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.config.annotation.web.configurers.oauth2.server.resource</a></div>
<h2 title="Class OAuth2ResourceServerConfigurer" class="title">Class OAuth2ResourceServerConfigurer&lt;H extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;H&gt;&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">org.springframework.security.config.annotation.SecurityConfigurerAdapter</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;B&gt;</li>
<li>
<ul class="inheritance">
<li><a href="../../../AbstractHttpConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers">org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;H&gt;,&#8203;H&gt;</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer&lt;H&gt;</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../../../../../SecurityConfigurer.html" title="interface in org.springframework.security.config.annotation">SecurityConfigurer</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;H&gt;</code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">OAuth2ResourceServerConfigurer&lt;H extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;H&gt;&gt;</span>
extends <a href="../../../AbstractHttpConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers">AbstractHttpConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;H&gt;,&#8203;H&gt;</pre>
<div class="block">An <a href="../../../AbstractHttpConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers"><code>AbstractHttpConfigurer</code></a> for OAuth 2.0 Resource Server Support.
By default, this wires a <a href="../../../../../../../oauth2/server/resource/web/BearerTokenAuthenticationFilter.html" title="class in org.springframework.security.oauth2.server.resource.web"><code>BearerTokenAuthenticationFilter</code></a>, which can be used to
parse the request for bearer tokens and make an authentication attempt.
<p>
The following configuration options are available:
<ul>
<li><a href="OAuth2ResourceServerConfigurer.html#accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler)"><code>accessDeniedHandler(AccessDeniedHandler)</code></a></li> - customizes how access
denied errors are handled
<li><a href="OAuth2ResourceServerConfigurer.html#authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint)"><code>authenticationEntryPoint(AuthenticationEntryPoint)</code></a></li> - customizes how
authentication failures are handled
<li><a href="OAuth2ResourceServerConfigurer.html#bearerTokenResolver(org.springframework.security.oauth2.server.resource.web.BearerTokenResolver)"><code>bearerTokenResolver(BearerTokenResolver)</code></a> - customizes how to resolve a
bearer token from the request</li>
<li><a href="OAuth2ResourceServerConfigurer.html#jwt(org.springframework.security.config.Customizer)"><code>jwt(Customizer)</code></a> - enables Jwt-encoded bearer token support</li>
<li><a href="OAuth2ResourceServerConfigurer.html#opaqueToken(org.springframework.security.config.Customizer)"><code>opaqueToken(Customizer)</code></a> - enables opaque bearer token support</li>
</ul>
<p>
When using <a href="OAuth2ResourceServerConfigurer.html#jwt(org.springframework.security.config.Customizer)"><code>jwt(Customizer)</code></a>, either
<ul>
<li>supply a Jwk Set Uri via <a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html#jwkSetUri(java.lang.String)"><code>OAuth2ResourceServerConfigurer.JwtConfigurer.jwkSetUri(java.lang.String)</code></a>, or</li>
<li>supply a <a href="../../../../../../../oauth2/jwt/JwtDecoder.html" title="interface in org.springframework.security.oauth2.jwt"><code>JwtDecoder</code></a> instance via <a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html#decoder"><code>OAuth2ResourceServerConfigurer.JwtConfigurer.decoder</code></a>, or</li>
<li>expose a <a href="../../../../../../../oauth2/jwt/JwtDecoder.html" title="interface in org.springframework.security.oauth2.jwt"><code>JwtDecoder</code></a> bean</li>
</ul>
Also with <a href="OAuth2ResourceServerConfigurer.html#jwt(org.springframework.security.config.Customizer)"><code>jwt(Customizer)</code></a> consider
<ul>
<li>customizing the conversion from a <a href="../../../../../../../oauth2/jwt/Jwt.html" title="class in org.springframework.security.oauth2.jwt"><code>Jwt</code></a> to an
<a href="../../../../../../../core/Authentication.html" title="interface in org.springframework.security.core"><code>Authentication</code></a> with
<a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html#jwtAuthenticationConverter(org.springframework.core.convert.converter.Converter)"><code>OAuth2ResourceServerConfigurer.JwtConfigurer.jwtAuthenticationConverter(Converter)</code></a></li>
</ul>
<p>
When using <a href="OAuth2ResourceServerConfigurer.html#opaqueToken(org.springframework.security.config.Customizer)"><code>opaqueToken(Customizer)</code></a>, supply an introspection endpoint and its
authentication configuration
</p>
<h2>Security Filters</h2>
The following <code>Filter</code>s are populated when <a href="OAuth2ResourceServerConfigurer.html#jwt(org.springframework.security.config.Customizer)"><code>jwt(Customizer)</code></a> is
configured:
<ul>
<li><a href="../../../../../../../oauth2/server/resource/web/BearerTokenAuthenticationFilter.html" title="class in org.springframework.security.oauth2.server.resource.web"><code>BearerTokenAuthenticationFilter</code></a></li>
</ul>
<h2>Shared Objects Created</h2>
The following shared objects are populated:
<ul>
<li><a href="../../../../../../http/SessionCreationPolicy.html" title="enum in org.springframework.security.config.http"><code>SessionCreationPolicy</code></a> (optional)</li>
</ul>
<h2>Shared Objects Used</h2>
The following shared objects are used:
<ul>
<li><a href="../../../../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication"><code>AuthenticationManager</code></a></li>
</ul></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>5.1</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../oauth2/server/resource/web/BearerTokenAuthenticationFilter.html" title="class in org.springframework.security.oauth2.server.resource.web"><code>BearerTokenAuthenticationFilter</code></a>,
<a href="../../../../../../../oauth2/server/resource/authentication/JwtAuthenticationProvider.html" title="class in org.springframework.security.oauth2.server.resource.authentication"><code>JwtAuthenticationProvider</code></a>,
<a href="../../../../../../../oauth2/jwt/NimbusJwtDecoder.html" title="class in org.springframework.security.oauth2.jwt"><code>NimbusJwtDecoder</code></a>,
<a href="../../../AbstractHttpConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers"><code>AbstractHttpConfigurer</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">

</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.JwtConfigurer</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">

</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#%3Cinit%3E(org.springframework.context.ApplicationContext)">OAuth2ResourceServerConfigurer</a></span>&#8203;(org.springframework.context.ApplicationContext&nbsp;context)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler)">accessDeniedHandler</a></span>&#8203;(<a href="../../../../../../../web/access/AccessDeniedHandler.html" title="interface in org.springframework.security.web.access">AccessDeniedHandler</a>&nbsp;accessDeniedHandler)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint)">authenticationEntryPoint</a></span>&#8203;(<a href="../../../../../../../web/AuthenticationEntryPoint.html" title="interface in org.springframework.security.web">AuthenticationEntryPoint</a>&nbsp;entryPoint)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#authenticationManagerResolver(org.springframework.security.authentication.AuthenticationManagerResolver)">authenticationManagerResolver</a></span>&#8203;(<a href="../../../../../../../authentication/AuthenticationManagerResolver.html" title="interface in org.springframework.security.authentication">AuthenticationManagerResolver</a>&lt;javax.servlet.http.HttpServletRequest&gt;&nbsp;authenticationManagerResolver)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#bearerTokenResolver(org.springframework.security.oauth2.server.resource.web.BearerTokenResolver)">bearerTokenResolver</a></span>&#8203;(<a href="../../../../../../../oauth2/server/resource/web/BearerTokenResolver.html" title="interface in org.springframework.security.oauth2.server.resource.web">BearerTokenResolver</a>&nbsp;bearerTokenResolver)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#configure(H)">configure</a></span>&#8203;(<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&nbsp;http)</code></th>
<td class="colLast">
<div class="block">Configure the <a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a> by setting the necessary properties on the
<a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#init(H)">init</a></span>&#8203;(<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&nbsp;http)</code></th>
<td class="colLast">
<div class="block">Initialize the <a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.JwtConfigurer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#jwt()">jwt</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#jwt(org.springframework.security.config.Customizer)">jwt</a></span>&#8203;(<a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config">Customizer</a>&lt;<a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.JwtConfigurer</a>&gt;&nbsp;jwtCustomizer)</code></th>
<td class="colLast">
<div class="block">Enables Jwt-encoded bearer token support.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#opaqueToken()">opaqueToken</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="OAuth2ResourceServerConfigurer.html#opaqueToken(org.springframework.security.config.Customizer)">opaqueToken</a></span>&#8203;(<a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config">Customizer</a>&lt;<a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</a>&gt;&nbsp;opaqueTokenCustomizer)</code></th>
<td class="colLast">
<div class="block">Enables opaque bearer token support.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.web.configurers.<a href="../../../AbstractHttpConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers">AbstractHttpConfigurer</a></h3>
<code><a href="../../../AbstractHttpConfigurer.html#disable()">disable</a>, <a href="../../../AbstractHttpConfigurer.html#withObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">withObjectPostProcessor</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.security.config.annotation.SecurityConfigurerAdapter">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.security.config.annotation.<a href="../../../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">SecurityConfigurerAdapter</a></h3>
<code><a href="../../../../../SecurityConfigurerAdapter.html#addObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">addObjectPostProcessor</a>, <a href="../../../../../SecurityConfigurerAdapter.html#and()">and</a>, <a href="../../../../../SecurityConfigurerAdapter.html#getBuilder()">getBuilder</a>, <a href="../../../../../SecurityConfigurerAdapter.html#postProcess(T)">postProcess</a>, <a href="../../../../../SecurityConfigurerAdapter.html#setBuilder(B)">setBuilder</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">

</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.springframework.context.ApplicationContext)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OAuth2ResourceServerConfigurer</h4>
<pre>public&nbsp;OAuth2ResourceServerConfigurer&#8203;(org.springframework.context.ApplicationContext&nbsp;context)</pre>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>accessDeniedHandler</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;accessDeniedHandler&#8203;(<a href="../../../../../../../web/access/AccessDeniedHandler.html" title="interface in org.springframework.security.web.access">AccessDeniedHandler</a>&nbsp;accessDeniedHandler)</pre>
</li>
</ul>
<a id="authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>authenticationEntryPoint</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;authenticationEntryPoint&#8203;(<a href="../../../../../../../web/AuthenticationEntryPoint.html" title="interface in org.springframework.security.web">AuthenticationEntryPoint</a>&nbsp;entryPoint)</pre>
</li>
</ul>
<a id="authenticationManagerResolver(org.springframework.security.authentication.AuthenticationManagerResolver)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>authenticationManagerResolver</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;authenticationManagerResolver&#8203;(<a href="../../../../../../../authentication/AuthenticationManagerResolver.html" title="interface in org.springframework.security.authentication">AuthenticationManagerResolver</a>&lt;javax.servlet.http.HttpServletRequest&gt;&nbsp;authenticationManagerResolver)</pre>
</li>
</ul>
<a id="bearerTokenResolver(org.springframework.security.oauth2.server.resource.web.BearerTokenResolver)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>bearerTokenResolver</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;bearerTokenResolver&#8203;(<a href="../../../../../../../oauth2/server/resource/web/BearerTokenResolver.html" title="interface in org.springframework.security.oauth2.server.resource.web">BearerTokenResolver</a>&nbsp;bearerTokenResolver)</pre>
</li>
</ul>
<a id="jwt()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>jwt</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.JwtConfigurer</a>&nbsp;jwt()</pre>
</li>
</ul>
<a id="jwt(org.springframework.security.config.Customizer)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>jwt</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;jwt&#8203;(<a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config">Customizer</a>&lt;<a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.JwtConfigurer</a>&gt;&nbsp;jwtCustomizer)</pre>
<div class="block">Enables Jwt-encoded bearer token support.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>jwtCustomizer</code> - the <a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config"><code>Customizer</code></a> to provide more options for the
<a href="OAuth2ResourceServerConfigurer.JwtConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource"><code>OAuth2ResourceServerConfigurer.JwtConfigurer</code></a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource"><code>OAuth2ResourceServerConfigurer</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="opaqueToken()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>opaqueToken</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</a>&nbsp;opaqueToken()</pre>
</li>
</ul>
<a id="opaqueToken(org.springframework.security.config.Customizer)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>opaqueToken</h4>
<pre class="methodSignature">public&nbsp;<a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&nbsp;opaqueToken&#8203;(<a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config">Customizer</a>&lt;<a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource">OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</a>&gt;&nbsp;opaqueTokenCustomizer)</pre>
<div class="block">Enables opaque bearer token support.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>opaqueTokenCustomizer</code> - the <a href="../../../../../../Customizer.html" title="interface in org.springframework.security.config"><code>Customizer</code></a> to provide more options for the
<a href="OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource"><code>OAuth2ResourceServerConfigurer.OpaqueTokenConfigurer</code></a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="OAuth2ResourceServerConfigurer.html" title="class in org.springframework.security.config.annotation.web.configurers.oauth2.server.resource"><code>OAuth2ResourceServerConfigurer</code></a> for further customizations</dd>
</dl>
</li>
</ul>
<a id="init(org.springframework.security.config.annotation.web.HttpSecurityBuilder)">

</a><a id="init(H)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;init&#8203;(<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&nbsp;http)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../SecurityConfigurer.html#init(B)">SecurityConfigurer</a></code></span></div>
<div class="block">Initialize the <a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a>. Here only shared state should be created
and modified, but not properties on the <a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a> used for building
the object. This ensures that the <a href="../../../../../SecurityConfigurer.html#configure(B)"><code>SecurityConfigurer.configure(SecurityBuilder)</code></a> method uses
the correct shared objects when building. Configurers should be applied here.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../SecurityConfigurer.html#init(B)">init</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../SecurityConfigurer.html" title="interface in org.springframework.security.config.annotation">SecurityConfigurer</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a> extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../SecurityConfigurerAdapter.html#init(B)">init</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">SecurityConfigurerAdapter</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a> extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&gt;</code></dd>
</dl>
</li>
</ul>
<a id="configure(org.springframework.security.config.annotation.web.HttpSecurityBuilder)">

</a><a id="configure(H)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>configure</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;configure&#8203;(<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&nbsp;http)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../SecurityConfigurer.html#configure(B)">SecurityConfigurer</a></code></span></div>
<div class="block">Configure the <a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a> by setting the necessary properties on the
<a href="../../../../../SecurityBuilder.html" title="interface in org.springframework.security.config.annotation"><code>SecurityBuilder</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../SecurityConfigurer.html#configure(B)">configure</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../SecurityConfigurer.html" title="interface in org.springframework.security.config.annotation">SecurityConfigurer</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a> extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&gt;</code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../SecurityConfigurerAdapter.html#configure(B)">configure</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../SecurityConfigurerAdapter.html" title="class in org.springframework.security.config.annotation">SecurityConfigurerAdapter</a>&lt;<a href="../../../../../../../web/DefaultSecurityFilterChain.html" title="class in org.springframework.security.web">DefaultSecurityFilterChain</a>,&#8203;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a> extends <a href="../../../../HttpSecurityBuilder.html" title="interface in org.springframework.security.config.annotation.web">HttpSecurityBuilder</a>&lt;<a href="OAuth2ResourceServerConfigurer.html" title="type parameter in OAuth2ResourceServerConfigurer">H</a>&gt;&gt;</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="OAuth2ResourceServerConfigurer.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="OAuth2ResourceServerConfigurer.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040eced9ce297cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
